package com.dingxin.ship_together_api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
* Author: ctj
* Date: 2022-09-14
* Time: 11:21
*/

/**
    * 船只基本信息表
    */
@ApiModel(value="船只基本信息表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "ship_together.ship_info")
public class ShipInfo implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 船只编号
     */
    @TableField(value = "`number`")
    @ApiModelProperty(value="船只编号")
    private String number;

    /**
     * 船只座位数
     */
    @TableField(value = "seats")
    @ApiModelProperty(value="船只座位数")
    private Integer seats;

    /**
     * 船只图片
     */
    @TableField(value = "pic")
    @ApiModelProperty(value="船只图片")
    private String pic;

    /**
     * 所属船长
     */
    @TableField(value = "belong_to")
    @ApiModelProperty(value="所属船长")
    private String belongTo;

    /**
     * 创建人
     */
    @TableField(value = "create_by" ,fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    @JsonIgnore
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    @JsonIgnore
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="更新人")
    @JsonIgnore
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="更新时间")
    @JsonIgnore
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "deleted")
    @ApiModelProperty(value="是否删除")
    @JsonIgnore
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NUMBER = "number";

    public static final String COL_SEATS = "seats";

    public static final String COL_PIC = "pic";

    public static final String COL_BELONG_TO = "belong_to";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_BY = "update_by";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DELETED = "deleted";
}